package org.example.springioc.V2;
//降低了耦合性
//需要的东西，直接调用即可

public class Car {
    private Framework framework;
    Car(Framework framework){
        this.framework = framework ;
        run();
    }
    public void run(){
        System.out.println("车子好了");
    }

    public static void main(String[] args) {
        
        Tire tire = new Tire(19,"黑色");
        Bottom bottom = new Bottom(tire);
        Framework framework1 = new Framework(bottom);
        Car car = new Car(framework1);
    }
}
